import type { PageBill, QueryPageBill, Result } from '@/config/data/data'
import { get } from './request'

/**
 * 根据分类查询账单
 * @param data 参数对象
 * @returns 多条信息
 */
export const ReqSelectPageBillByCategory = (
  data: QueryPageBill
): Promise<Result<PageBill[]>> => get('/bill/page/category', data)


/**
 * 根据id查询账单
 * @param data 参数对象
 * @returns 单条信息
 */
export const ReqSelectBillDetail = (
  data:{id:number}
): Promise<Result<PageBill>> => get('/bill/detail', data)
